"""
Base class for subtitle engines. It provides
basic search and scan implementations to be extended
by more specific sub search engines (like opensubtitles
or addict7ed)
"""

class SubtitleEngine(object):
    
    def __init__(self):
        super(SubtitleEngine, self).__init__()
        self.overrite = False
        self.searchIfExists = False
        self.searchSubFolders = True
        self.allowedFiles = ["mkv", "avi", "mpeg", "mpg", "mp4"]
        self.languages = []
        self.subtitles = {}
        
    def search(self, files = []):
        pass
            
    def download(self):
        pass
        
    def close(self):
        pass        